package com.lys.emsystem.service.impl;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.lys.emsystem.entity.Intent;
import com.lys.emsystem.mapper.IntentMapper;
import com.lys.emsystem.service.IIntentService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.lys.emsystem.vo.IntentVo;
import com.lys.emsystem.vo.StuJobVo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author liyansheng
 * @since 2022-04-26
 */
@Service
public class IntentServiceImpl extends ServiceImpl<IntentMapper, Intent> implements IIntentService {

    @Autowired
    private IntentMapper intentMapper;

    @Override
    public IPage<Intent> search(Page Page, IntentVo intentVo) {
        return intentMapper.search(Page, intentVo);
    }

    @Override
    public List<StuJobVo> getStuIntents(Integer id) {
        return intentMapper.getStuIntents(id);
    }
}
